const Conf = (function (){
    const conf =  {
        MAX_NUM:100,
        MIN_NUM:1
    }
    return {
        // 取值器
        get(name){
            return conf[name]?conf[name]:null
        }
    }
})()

const max_num = Conf.get('MAX_NUM')
console.log(max_num)


(function (){
    let name=null
    Person = function (value){
        name = value
    }
    Person.prototype.getName= function (){
        return name;
    }
    Person.prototype.setName = function(value){
        name = value
    }
})()

let p1 = new Person('ck')
console.log(Person)
